<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>赋值运算符</title>
</head>
<body>
<script>
    /* 赋值运算符 将右侧的值赋值给左侧的变量
    *   +=
    *       a+=5 等价于a=a+5
   *    -=
    *       a-=5 等价于a=a-5
    *   *=
    *       a*=5 等价于a=a*5
    *   /=
    *       a/=5 等价于a=a/5
    *   %=
    *       a%=5 等价于a=a%5
    * */
    var a=5;
    a+=10;
    console.log("a="+a);

    var b=33;
    b-=3;
    console.log("b="+b);

    var c=15;
    c*=3;
    console.log("c="+c);

    var d=22;
    d/=11;
    console.log("d="+d);

    var e=9;
    e%=3;
    console.log("e="+e);
</script>
</body>
</html>